﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Style TargetType="{x:Type Button}" x:Key="SaveButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;Component/Resources/Save.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Save.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="AddNewButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/AddNew.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/AddNew.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="AttachmentsButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Attachments.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Attachments.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="ClearButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Clear.png"
                                            Stretch="Fill"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="CopyButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Copy.png"
                                            Stretch="Fill" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="CutButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Cut.png"
                                            Stretch="Fill"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="DeleteButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Delete.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Delete.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="HelpButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Help.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Help.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="MemoButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Memo.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Memo.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="PasteButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Paste.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Paste.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="RefreshButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Refresh.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Refresh.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="ToolsButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Tools.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Tools.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="UndoButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Undo.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Undo.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type Button}" x:Key="PrintButton">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="/XERP.Client.WPF;component/Resources/Printer.png"
                                            Stretch="Fill" Opacity=".6"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Opacity" Value="1"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="/XERP.Client.WPF;component/Resources/Printer.png"
                                            Stretch="Fill" TileMode="None" />
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style TargetType="{x:Type MenuItem}" x:Key="AddNewMenuItem">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="28"/>
        <Setter Property="Height" Value="28"/>
        <Setter Property="MenuItem.Icon" Value="{DynamicResource AddNewIcon}"/>
    </Style>
    <Image x:Key="AddNewIcon" Source="/XERP.Client.WPF;component/Resources/AddNew.png" x:Shared="false"/>
    <Style TargetType="{x:Type MenuItem}" x:Key="DeleteMenuItem">
        <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
        <Setter Property="Width" Value="28"/>
        <Setter Property="Height" Value="28"/>
        <Setter Property="MenuItem.Icon" Value="{DynamicResource DeleteIcon}"/>
    </Style>
    <Image x:Key="DeleteIcon" Source="/XERP.Client.WPF;component/Resources/Delete.png" x:Shared="false"/>

</ResourceDictionary>
